<template>
<!-- 投放计划 -->
<div class="audit">
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
          <el-form-item label="开始时间">
            <el-date-picker type="date" placeholder="选择日期" v-model="form.date1"  style="width: 100%;"></el-date-picker>
          </el-form-item>
          <el-form-item label="结束时间">
            <el-date-picker type="date" placeholder="选择日期" v-model="form.date2"  style="width: 100%;"></el-date-picker>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" @click="onSubmit1">添加投放时间</el-button>
            <el-button type="reset" @click="reset">重&nbsp;&nbsp;置</el-button>
          </el-form-item>
        </el-form>
        <el-table ref="singleTable" :data="tableDataS" highlight-current-row @current-change="handleCurrentChange" style="width: 100%">
          <el-table-column  property="time"  label="开始时间">  </el-table-column>
          <el-table-column  property="time1"  label="结束时间"  > </el-table-column>
          <el-table-column  property="time2"  label="共计投放日"> </el-table-column>
          <el-table-column  property="address"  label="操作">
            <template slot-scope="scope">
            <el-button  type="danger" >删&nbsp;&nbsp;除</el-button>
            </template>
          </el-table-column>
        </el-table>
</div>
</template>
<script>
export default {
    data(){
        return{
            active:0,
            form: {
                date1: '',
                date2: '',
            },
             tableDataS:[{
                time: '2012.6',
                time1: '2012.9',
                time2: '3'
            },{
                time: '2017.2',
                time1: '2018.9',
                time2: '19'
            }]
        }
    }
}
</script>
